#pragma once
#include <string>

class CommandConfig
{

public:
	static const int DEFAULT_TIMEOUT = 30;

	CommandConfig(const std::string& name, const std::string& destinationName,const std::string& factoryName,
		const std::string& connectionName, const int& timeout = CommandConfig::DEFAULT_TIMEOUT, const std::string& replyCommandName="")
:name(name), destinationName(destinationName),factoryName(factoryName), connectionName(connectionName), timeout(timeout), replyCommandName(replyCommandName)
{
	if(this->timeout <= 0)
	{
		this->timeout = CommandConfig::DEFAULT_TIMEOUT;
	}
}
	~CommandConfig(){}
	std::string getName() const {return name;}
public:
	std::string name;
	std::string destinationName;
	int timeout;
	std::string replyCommandName;
	std::string factoryName;
	std::string connectionName;

};
